import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@Entity()
export class UserLogin {
  //基本信息字段
  @PrimaryGeneratedColumn({ comment: '自增ID' })
  id: number;
  @Column({ comment: '用户ID', nullable: true, })
  user_id: number;
  @Column({ comment: '邮箱', nullable: true, })
  user_email: string;
  @Column({ comment: '登录时间', nullable: true, })
  login_time: string;
  @Column({ comment: '登出时间', nullable: true, })
  logout_time: string;
  @Column({ comment: '令牌', nullable: true, })
  login_token: string;
  @Column({ comment: '登录IP', nullable: true, })
  login_ip: string;
  @Column({ comment: '登录设备', nullable: true, })
  login_device: string;
}
